﻿namespace HQS.TokenInterpolation.Tokens
{
    [Token(Name = "split")]
    public class Split : AbstractToken
    {
        [TokenProperty("this")]
        public string This { get; private set; }

        [TokenProperty("by")]
        public string By { get; private set; }

        [TokenProperty("removeempty", false)]
        public bool RemoveEmpty { get; private set; }

        protected override TokenRuntimeValue OnAccept(IDataSourcesVisitor dataSourcesVisitor)
        {
            return dataSourcesVisitor.Visit(this);
        }
    }
}